/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assigment.factoryMethod;

/**
 *
 * @author user
 */
public class AnimalFactory {
    public Animal getAnimal(String type) {
        if (type.equalsIgnoreCase("cat")) {
            return new Cat();
        } else {
            return new Dog1();
        }
    }
}
